package com.csdj.s3project.common;

/**
 * 缓存相关的常量
 */
public class CacheConstant {

    public static final String HEADER_UID = "uid";
    public static final String HEADER_TOKEN = "token";
    public static final String HEADER_USER_NAME = "username";

    //在redis中保存token的键名的前缀
    public static final String TOKEN_PREFIX = "token_";

    //token在缓存中的存活时间 以秒为单位
    public static final int TOKEN_CACHE_TIME = 3600;

    //ehcache中缓存用户信息的缓存名称
    public static final String CACHE_NAME_USER = "UserCache";

    //签到最多和最少赠送的积分数量
    public static final int MAX_NUMBER_OF_INTEGRAL = 15;
    public static final int MIN_NUMBER_OF_INTEGRAL = 1;

    //碎片位置
    public static final String CACHE_PIECES_POSITION = "piecesPosition";
}
